encoding/asn1.fieldParameters.defaultValue (field)
8 uses
encoding/asn1 (current package)
asn1.go#L1013: if params.defaultValue == nil {
asn1.go#L1017: v.SetInt(*params.defaultValue)
common.go#L80: defaultValue *int64 // a default value for INTEGER typed fields (maybe nil).
common.go#L121: ret.defaultValue = new(int64)
common.go#L122: *ret.defaultValue = i
marshal.go#L592: if params.optional && params.defaultValue != nil && canHaveDefaultValue(v.Kind()) {
marshal.go#L594: defaultValue.SetInt(*params.defaultValue)
marshal.go#L604: if params.optional && params.defaultValue == nil {
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |